#!/bin/bash

FILES=($@)

for file in ${FILES[@]}
do
    iconv -f ISO-8859-15 -t UTF-8 "$file" > "${file}.utf8"
    if [ $? -ne 0 ]; then exit 1; fi
done
